package com.monday.graphql.resolver;

import com.monday.graphql.model.Author;
import com.monday.graphql.model.Book;
import graphql.kickstart.tools.GraphQLResolver;

public class BookResolver implements GraphQLResolver<Book> {

    public Author author(Book book) {
        Author author = new Author();
        author.setId(book.getAuthorId());
        author.setName("佚名");
        return author;
    }

}